#include "rational.h"

int main()
{
	rational r0, r1, r2, r3;

	std::cout << "enter r0:"; std::cin >> r0;
	std::cout << "enter r1:"; std::cin >> r1;
	std::cout << "enter r2:"; std::cin >> r2;
	std::cout << "enter r3:"; std::cin >> r3;

	std::cout << "numbers:" << std::endl
	          << "r0 = " << r0 << ", " << "r1 = " << r1 << ", " << std::endl
	          << "r2 = " << r2 << ", " << "r3 = " << r3 << ", " << std::endl;

	std::cout << "r1 + r3 = " << r1 + r3 << std::endl
	          << "r1 * r3 = " << r1 * r3 << std::endl
	          << "r1 - r3 = " << r1 - r3 << std::endl
	          << "r1 / r3 = " << r1 / r3 << std::endl;

	std::cout << "r0 + r1 + r2 + r3 = " << r0 + r1 + r2 + r3 << std::endl;

	std::cout << "-(r0+r2) = " << -(r0+r2) << std::endl;

	std::cout << "r0 * r1 * r2 * r3 = " << r0 * r1 * r2 * r3 << std::endl;

	return 0;
}
